Azure Maps Geolocation Service (preview:1.0)

2025/08/14 • 1 deleted methods

Geolocation_GetIPToLocation (removed)
Description **Applies to**: S0 and S1 pricing tiers. This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
Reference Link ¶

⚼ Request

GET:  /geolocation/ip/{format}
{
x-ms-client-id: string ,
subscription-key: string ,
api-version: string ,
format: string ,
ip: string ,
}

⚐ Response (200)

{
countryRegion:
{
isoCode: string ,
}
,
ipAddress: string ,
}

⚐ Response (400)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
target: string ,
}
,
}

⚐ Response (401)

{
$headers:
{
www-authenticate: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
target: string ,
}
,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
target: string ,
}
,
}

⚐ Response (404)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
target: string ,
}
,
}

⚐ Response (500)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
target: string ,
}
,
}